<script setup lang="ts">
import { useI18n } from 'vue-i18n';
import Motion from '../utils/motion';
import ReQrcode from '@/components/ReQrcode';
import { useUserStoreHook } from '@/store/modules/user';

const { t } = useI18n();
</script>

<template>
  <Motion class="-mt-2 -mb-2">
    <ReQrcode text="模拟测试" />
  </Motion>
  <Motion :delay="100">
    <el-divider>
      <p class="text-gray-500 text-xs">{{ `扫码后点击"确认"，即可完成登录` }}</p>
    </el-divider>
  </Motion>
  <Motion :delay="150">
    <el-button class="w-full mt-4!" @click="useUserStoreHook().setCurrentPage(0)">
      {{ '返回' }}
    </el-button>
  </Motion>
</template>
